/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.domain;

import java.util.Date;

/**
 *
 * @author Miguel
 */
public final class Person {

    private int personID;
    private String firstName;
    private String lastName;
    private ContactInformation contactInfo;
    private Date registrationDate;

    public Person() {
        setFirstName("");
        setLastName("");
    }

    public Person(String in_Name, String in_lastname, Date rgstrtnDate) {
        setFirstName(in_Name);
        setLastName(in_lastname);
        setRegistrationDate(rgstrtnDate);
        contactInfo = new ContactInformation();
    }

    public void setFirstName(final String in_FirstName) {
        firstName = in_FirstName;
    }

    public void setLastName(final String in_LastName) {
        lastName = in_LastName;
    }

    public void setContactInformation(ContactInformation inCntctInfo) {
        contactInfo = inCntctInfo;
    }

    public String getName() {
        return getFirstName() + " " + getLastName();
    }

    public ContactInformation getContactInformation() {
        return contactInfo;
    }

    public String getFirstName() {
        return firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setRegistrationDate(Date rgstrtnDate) {
        registrationDate = rgstrtnDate;
    }

    public Date getRegistrationDate() {
        return registrationDate;
    }

    public void setPersonID(int inID) {
        personID = inID;
    }

    public int getPersonID() {
        return personID;
    }
}